#include <iostream>
#include <cstring>
using namespace std;

class Person
{
private:
  char Name[20];
  char Sex;
  int Age;

public:
  void Register(char *name, int age, char sex)
  {
    strcpy(Name, name);
    Age = age;
    Sex = sex;
  }

  void ShowMe()
  {
    cout << Name << " " << Age << " " << Sex;
  }
};

class Student : public Person
{
private:
  int Number;
  char ClassName[10];

public:
  void RegisterStu(char *classname, int number, char *name, int age, char sex)
  {
    Register(name, age, sex); //派生类继承的private对象，用基类的函数来完成赋值初始化
    strcpy(ClassName, name);  //派生类自己的private对象，自己赋值初始化
    Number = number;
  }
  void ShowStu()
  {
    cout << Number << " " << ClassName << " ";
    ShowMe();   //函数使用也是，派生类中不含有基类里面的对象，无法直接显示Age
  }
};


int main()
{
  char name[10];
  int age;
  char sex;
  char classname[50];
  int number;
  cin >> classname >> number >> name >> sex;
  Student stu;
  
}
